package day01;

import java.util.Scanner;

public class demo5 {
    public static void main(String[] args) {
        int sum=0;
        int b=1;
        if( b<1 || b>100){
            System.out.println("数据无效");
        }else{
             for(b=1;b<=100;b++){
                 if(b%3==0){
                     sum=sum+b;
                     System.out.println(sum);
                 }
             }
            }
        }


    }

